package com.estate.utils;

public class EducationUtil {

	public static int getEducationInt(String educationString){
		int education = 0;
		
		if("大学".equals(educationString)){
			education = 1;
		}else if("高中以下".equals(educationString)){
			education = 2;
		}else if("高中".equals(educationString)){
			education = 3;
		}else if("研究生".equals(educationString)){
			education = 4;
		}else if("研究生以上".equals(educationString)){
			education = 5;
		}
		
		return education;
	}
	
	public static String getEducationString(int educationInt){
		String education = "";
		
		if(educationInt == 1){
			education = "大学";
		}else if(educationInt == 2){
			education = "高中以下";
		}else if(educationInt == 3){
			education = "高中";
		}else if(educationInt == 4){
			education = "研究生";
		}else if(educationInt == 5){
			education = "研究生以上";
		}
		
		return education;
	}
}
